// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "WidgetCalendarShared",
    defaultLocalization: "zh-Hans",
    platforms: [
        .iOS(.v16),
        .macOS(.v13)
    ],
    products: [
        .library(
            name: "WidgetCalendarShared",
            targets: ["WidgetCalendarShared"]),
    ],
    dependencies: [
        .package(url: "https://gitee.com/liyb93/CalendarShared", .branch("main")),
//        .package(url: "../CalendarShared", .branch("main")),
        .package(url: "https://github.com/dkk/WrappingHStack", .upToNextMajor(from: "2.2.11"))
    ],
    targets: [
        .target(
            name: "WidgetCalendarShared",
            dependencies: [
                .product(name: "CalendarShared", package: "CalendarShared"),
                .product(name: "WrappingHStack", package: "WrappingHStack")
            ],
            path: "Sources",
            resources: [
                .process("Resources")
            ]
        ),
    ]
)
